package it.univaq.mwt.tp;

import it.univaq.mwt.tp.Person;

import java.io.Serializable;

import javax.persistence.*;

/**
 * Entity implementation class for Entity: Employee
 * 
 */
@Entity
public class Employee extends Person implements Serializable {

	private int empID;
	private float salary;
	private static final long serialVersionUID = 1L;
	private Department department;

	public Employee() {
		super();
	}

	public Employee(int empID, String ssn, String name) {
		super(ssn, name);
		this.empID = empID;
	}

	public int getEmpID() {
		return this.empID;
	}

	public void setEmpID(int empID) {
		this.empID = empID;
	}

	public float getSalary() {
		return this.salary;
	}

	public void setSalary(float salary) {
		this.salary = salary;
	}

	@ManyToOne
	public Department getDepartment() {
		return department;
	}

	public void setDepartment(Department department) {
		this.department = department;
	}

}
